package com.atguigu.eduservice.service.impl;

import com.atguigu.eduservice.entity.EduCourseDescription;
import com.atguigu.eduservice.mapper.CourseDescriptionMapper;
import com.atguigu.eduservice.service.CourseDescriptionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author AIR
 * @since 2022-09-20
 */
@Service
@Transactional
public class CourseDescriptionServiceImpl extends ServiceImpl<CourseDescriptionMapper, EduCourseDescription> implements CourseDescriptionService {

    //3 根据课程id删除描述
    @Override
    public void removeDcByCourseId(String courseId) {
        baseMapper.deleteById(courseId);
    }
}
